package com.qf.service.api;

import com.qf.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @Author: xbb
 * @Date:2020/4/15
 */
@FeignClient("USER-WEB")
public interface IUserService {

    @RequestMapping(value = "/user/findUserByName")
    public User findUserByName(@RequestParam("username") String username);

    @RequestMapping("/user/getUserById")
    public User getUserById(@RequestParam("id") Integer id);
}
